ptopo

Discover ptopo, include the articles, news, trends, analysis and practical advice about ptopo on alibabacloud.com

Topology check (arcengine)

topology creation method will invalidate the workspace. Generally, ArcSDE is used, and the element classes rarely do not register the version. Without the registration version, version tracing cannot be achieved.You cannot even cancel and redo the edits. Topology checkTopology check with a registered version must be performed between one edit operation.''' ''' Performs a topology check on the specified layer and adds the topology result layer to the map ''' ''' ''' ''' Public sub validatetopol

Merge a layer selection Object C # arcengine

Arcengine implements merge functions Private igeometry getgeo (ifeaturelayer pflyr){Ienumgeometry pgos = new enumfeaturegeometryclass ();Ienumgeometrybind pgeosbind = pgos as ienumgeometrybind;Ifeatureselection pflyrselection = pflyr as ifeatureselection;Pflyrselection. selectfeatures (null, esriselectionresultenum. esriselectionresultnew, false); pgeosbind. bindgeometrysource (null, pflyrselection. selectionset );Pgos. Reset ();Ipolympus Gon spoly = new polygonclass ();Itopologicaloperator

ArcObjects: determines the object's self-intersection

Delphi code // Determine the object self-intersection Function isselfcross (pgeometry: igeometry): Boolean;VaRPtopo: itopologicaloperator2;B: wordbool;BeginPtopo: = pgeometry as itopologicaloperator2;Ptopo. set_isknownsimple (false );Ptopo. get_issimple (B );Result: = B; End; C # code // Determine the object self-intersectionPublic static bool isselfcross (igeometry pgeometry){Itopologicaloperator2 ptopolog

C # arcengine Implement click Feature Highlighting and pop its properties

This article simulates the identify (recognition) function in ArcMap by clicking on the feature to highlight it and pop up its property sheet! This article only made a click query!The environment used in this article is vs2010,aecengine based on the C # language, and the interface is made with Dev, which is slightly better than the Windows-brought form, with the following effects:Main implementation code (under Axmapcontrol1_onmousedown):1 itopologicaloperator

C # + AE method for determining whether a vertex is in the plane

missing2 = type. missing; ppath. addsegment (newline as isegment, ref missing1, ref missing2); ppolyline. addgeometry (ppath as igeometry, ref missing1, ref missing2); Ielement element = drawlinesymbol (ppolyline as igeometry, pcolor );Pgraph. addelement (element, 0 );Pactiveview. partialrefresh (esriviewdrawphase. esriviewgraphics, null, null ); Itopologicaloperator ptopo = ppolygon as itopologicaloperator; // ppolygon PolygonIgeometrycollection

Arcengine method of realizing feature selection (reproduced)

Pfeatureclass=Pfeaturelayer.featureclass;//set the location of the click PointIPoint point =PActiveView.ScreenDisplay.DisplayTransformation.ToMapPoint (e.x, e.y); Itopologicaloperator Ptopo= Point asItopologicaloperator;DoubleLength;length= Convertpixelstomapunits (Pactiveview,4); Igeometry pbuffer=ptopo.buffer (length); Igeometry pgeomentry=Pbuffer.envelope;//Space FilterIspatialfilter Pspatialfilter =NewSpatialfilterclass ();p spatialfilter.geometr

AE element selection (Click and pull box selection)

ifeaturelayer; ifeatureclass pfeatureclass = pfeaturelayer. featureclass; // set the position of the click point. ipoint point = pactiveview. screendisplay. displaytransformation. tomappoint (E. x, E. y); itopologicaloperator ptopo = point as itopologicaloperator; double length; length = convertpixelstomapunits (pactiveview, 4); igeometry pbuffer = pt OPO. buffer (length); igeometry pgeomentry = pbuffer. envelope; // The space filter ispatialfilter p

C # Arcgis Engine Gets the features of the mouse down position

PublicIFeature Getfeatureonmousedown (IPoint point) {Try{ILayer layer= Common.getlayerbyname (MMap,"plots"); if(Layer = =NULL) {MessageBox.Show ("please load parcel layers! ","Tips"); return NULL; } //Ifeaturelayer flayer = layer as Ifeaturelayer; //ifeatureselection featureselection = Flayer as ifeatureselection; //featureselection.clear (); //if (featureselection = = null)//{ //return null; //}Ifeaturelayer Featurelayer= Layer asIfeaturelayer; if(Featurelayer = =N

Zoj 3524 (topological sorting + multiple backpacks) (good question)

)); memset (Power,-1,sizeof(Power)); for(inti =0; I i) Mmap[i].clear ();}voidtopo () {inti,j; intTot =-1, index=0; for(i=1; i) { if(cnt[i]==0) St[++tot] =i; //PF ("%d", St[tot]); } //Blank; while(tot>=0) { intxx = st[tot--]; result[++index] =xx; ints =mmap[xx].size (); //PF ("tot%d\n", tot); for(j=0; j) {cur=Mmap[xx][j]; inty =CUR.V; //PF ("xx%d y%d", xx,y);cnt[y]--; if(cnt[y]==0) {st[++tot] =y; //PF ("tot%d\n", tot); //PF ("y%d", y); } }

AE determines if the point is within the face

(Ppolygon)-20.00000000, point. Y); +Ipolyline PLine =NewPolylineclass ();//define Ray APline.topoint =Topoint; atPline.frompoint =Point ; - -Itopologicaloperator Ptopo = Ppolygon asItopologicaloperator; -Igeometrycollection Pgeocol = Ptopo.intersect ((igeometry) pLine, esrigeometrydimension.esrigeometry0dimension) asigeometrycollection; -Ipointcollection Ppointcol = Pgeocol asipointcollection; - if((ppointcol.pointcount)%2==0) in

ArcGIS Engine Capture

(Snappoint! =NULL Snaptime = =0) Elementmoveto (Snappoint, axMapControl1); }}/// ///Capture/// /// /// /// /// /// PublicIPoint Snapping (DoubleXDoubley, Ifeaturelayer Ifeaturelyr, Axmapcontrol axMapControl1) {IPoint Ihitpoint=NULL; IMAP IMAP=Axmapcontrol1.map; Iactiveview IView=Axmapcontrol1.activeview; Ifeatureclass IFCLSS=Ifeaturelyr.featureclass; IPoint Point=NewPointclass (); Point. Putcoords (x, y); DoubleLength = Convertpixelstomapunits (Axmapcontrol1.activeview,8); Itopologicaloperat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.